package com.example.demo.entity;

import java.io.Serializable;
import java.util.Date;

public class CommentSection implements Serializable {
    private Integer commentSectionId;

    private Integer commentUserId;

    private Date commentDate;

    private String commentContent;

    private Integer commentTaskId;

    private static final long serialVersionUID = 1L;

    public Integer getCommentSectionId() {
        return commentSectionId;
    }

    public void setCommentSectionId(Integer commentSectionId) {
        this.commentSectionId = commentSectionId;
    }

    public Integer getCommentUserId() {
        return commentUserId;
    }

    public void setCommentUserId(Integer commentUserId) {
        this.commentUserId = commentUserId;
    }

    public Date getCommentDate() {
        return commentDate;
    }

    public void setCommentDate(Date commentDate) {
        this.commentDate = commentDate;
    }

    public String getCommentContent() {
        return commentContent;
    }

    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent == null ? null : commentContent.trim();
    }

    public Integer getCommentTaskId() {
        return commentTaskId;
    }

    public void setCommentTaskId(Integer commentTaskId) {
        this.commentTaskId = commentTaskId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", commentSectionId=").append(commentSectionId);
        sb.append(", commentUserId=").append(commentUserId);
        sb.append(", commentDate=").append(commentDate);
        sb.append(", commentContent=").append(commentContent);
        sb.append(", commentTaskId=").append(commentTaskId);
        sb.append("]");
        return sb.toString();
    }
}